package com.un.ebs.sys.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.un.ebs.core.metadata.DbField;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

/**
 * (UserGroup)表实体类
 *
 * @author liubo
 * @since 2020-11-17 10:41:31
 */
@Data
@Component
@TableName("sys_user_group")
@SuppressWarnings("serial")
public class UserGroup extends Model<UserGroup> {

    @TableId(value = "id", type = IdType.UUID)
    private String id;


    @DbField(name = "name", length = 100, precision = 0)
    private String name;

    @DbField(name = "remark", length = 200, precision = 0)
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_at", length = 40, precision = 0)
    private String createAt;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_time", length = -1, precision = 0)
    private Date createTime;

    @DbField(name = "ent_id", length = 40, precision = 0)
    private String entId;

    @DbField(name = "tenant_id", length = 40, precision = 0)
    private String tenantId;

    @TableLogic
    @DbField(name = "is_delete", length = -1, precision = 0)
    private Boolean isDelete;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}